﻿<%@ Page Title="" Language="C#" MasterPageFile="~/iFrameMasterPage.master" AutoEventWireup="true" CodeFile="AgencyEditor.aspx.cs" Inherits="AgencyEditor" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" Runat="Server">
  
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" Runat="Server">
    <div class="TblCaption" 
        onclick="CaptionToggle('body_CommonInfo','caption_CommonInfo');" 
        style="width:100%; height :25px">
        <table style="width:100%;">
            <tr>
                <td id="caption_CommonInfo" class="ArrowDown">
                    &nbsp;</td>
                <td>
                    Общая информация &nbsp;
                </td>
                <td class="style1">
                    &nbsp;</td>
            </tr>
        </table>
    </div>
    <div id="body_CommonInfo" style="width:100%">
        <table cellpadding="0" cellspacing="0" style="width:100%;">
            <tr id="CommonInfo">
                <td colspan="3" width="25%">
                    <table cellpadding="2" cellspacing="0" style="width:100%;">
                        <tr>
                            <td width="25%">
                                &nbsp;</td>
                            <td class="grd_td_item" style="width:25%">
                                Агентство:<asp:RequiredFieldValidator ID="RequiredFieldValidator1" 
                                    runat="server" ControlToValidate="txtName" ErrorMessage="*"></asp:RequiredFieldValidator>
                            </td>
                            <td class="grd_td_item">
                                <asp:TextBox ID="txtName" runat="server" CssClass="TextBox"  Text=<%#Agency.Name  %> ></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="vertical-align :top " width="25%">
                                &nbsp;</td>
                            <td class="grd_td_item" style="width:25%;vertical-align :top">
                                ID:</td>
                            <td class="grd_td_item">
                                <asp:TextBox ID="txtAdress" Text =<%#Agency.ID  %> runat="server" CssClass="TextBox"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="vertical-align :top " width="25%">
                                &nbsp;</td>
                            <td class="grd_td_item" style="width:25%;vertical-align :top">
                                Корень орг. стр.:</td>
                            <td class="grd_td_item">
                                <asp:TextBox ID="txtDepartment"  Text =<%#Agency.Department.Name %>  runat="server" CssClass="TextBox"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="vertical-align :top " width="25%">
                                &nbsp;</td>
                            <td class="grd_td_item" style="width:25%;vertical-align :top">
                                Заблокированно:</td>
                            <td class="grd_td_item">
                                <asp:CheckBox ID="CheckBox1" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td width="25%">
                                Сотрудники:</td>
                            <td style="width:25%">
                            </td>
                            <td style="text-align :right ">
                                <asp:Button ID="Button2" runat="server" CssClass="btn_wizard" 
                                    OnClick="btnSave_Click" Text="Сохранить" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <iframe src=<%#GetSrc() %>  frameborder="0" width="100%" style="height: 361px">
    </iframe>
</asp:Content>

